import request from '@/utils/request'

export function loginByUsername(query) {
  return request({
    url: '/login',
    method: 'post',
    data: query
  })
}

export function getSms(query){
  return request({
    url: '/sendSms',
    method: 'post',
    data: query
  })
}


export function logout() {
  return request({
    url: '/logout',
    method: 'post'
  })
}

export function getUserInfo() {
  return request({
    url: '/',
    method: 'get'
  })
}



